﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>::Happy - โทรศัพท์แบบเติมเงินจากดีแทค::</title>
        <link href="${RESOURCE}/css/global.css" rel="stylesheet" type="text/css" />
        <link href="${RESOURCE}/css/customize.css" rel="stylesheet" type="text/css" />
        <script src="${RESOURCE}/tha/include/AC_RunActiveContent.js" type="text/javascript"></script>
        <script src="${RESOURCE}/scripts/security.js" type="text/javascript"></script>
        <script src="${RESOURCE}/tha/Scripts/Base64.js" type="text/javascript"></script>
        <script src="${RESOURCE}/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
        <script src="${RESOURCE}/scripts/PageAction.js" type="text/javascript"></script>
        <script src="${RESOURCE}/scripts/validator.js" type="text/javascript"></script>
        <script type="text/javascript">
			$(document).ready(function() {
				MM_preloadImages('${RESOURCE}/tha/images/14_webservice_msgtab01_i.gif','${RESOURCE}/tha/images/14_webservice_msgtab02_i.gif','${RESOURCE}/tha/images/14_webservice_msgtab03_i.gif','${RESOURCE}/tha/images/14_webservice_msgtab04_i.gif');
				
				$('#search').keypress(function(event) { 
						if(event.which == 13){
                            doSearch();
                        }
					});
			});
			
			function doSearch() {
				var searchValue = $('#search').val();
				if(containsInvalidSymbol(searchValue)) {
					alert('ไม่อนุญาตให้ใส่อักขระพิเศษในค้นหาชื่อ กรุณากรอกข้อมูลให้ครบ');
                	$('#search').focus();
					return;
				}
				//document.forms['form1'].method = 'post';
                //document.forms['form1'].action = '/bp3/bin/Dspc/SMSPhoneBookList';
                //document.forms['form1'].command.value = "search";
                //document.forms['form1'].submit();
			}

    function gotoPage() {
        var p = document.form1.selectedpage.value;
        //alert("Page : "+p);
        url = "/bp3/bin/SelectPhonebook?page="+p;
        
        document.form1.method = 'post';
        document.form1.action = url;
        document.form1.submit();
    }
	
    function addPhonebook(the_form, url)
    {
        //var total_row = parseInt('18');
        //if ( total_row >= ) {
        //alert("ขณะนี้ Phonebook ของคุณมีเบอร์โทรศัพท์ครบ  เบอร์แล้ว คุณจึงไม่สามารถเพิ่มเบอร์ใหม่ได้");
        //return false;
        //}
        //save2hiddenfld();
        //if (!document.forms[the_form].elements['selectedpage']) {
        var p = 1;
        //}
        //else {
        //var p = document.form1.selectedpage.value;
        //}
        url = url+"?page="+p;
        document.forms[the_form].method = 'post';
        document.forms[the_form].action = url;
        document.forms[the_form].submit();
        return true;
    }
    function editPhonebook(the_form, the_elements, url)
    {
        if (!document.forms[the_form].elements[the_elements])
        {
            // No found checkbox in form
            alert("คุณไม่สามารถเลือก Phonebook เพื่อแก้ไขได้");
            return;
        }
        var elts   =  document.forms[the_form].elements[the_elements];
        var elts_cnt  = (typeof(elts.length) != 'undefined')? elts.length:0;
        var edit_cnt = 0;
        var result = "";
        if (elts_cnt)
        {
            for (var i = 0; i < elts_cnt; i++) 
            {
                if (elts[i].checked)
                {
                    result = elts[i].value;
                    edit_cnt++;
                    if (edit_cnt > 1)
                    {
                        alert("คุณสามารถแก้ไขเบอร์ที่ต้องการได้ครั้งละ 1 เบอร์เท่านั้น");
                        return;
                    }
                }
            }
            if (edit_cnt == 0)
            {
                //alert("You did not select contact to edit");
                alert("กรุณาเลือกเบอร์ที่ต้องการแก้ไขโดยการคลิ๊กช่องสี่เหลี่ยมหน้าเบอร์โทรศัพท์ที่ต้องการแก้ไข");
                return;
            }
            //return true;
        }
        else
        {
            if (elts.checked) 
            {
                result = elts.value;
                //return true;
            }
            else
            {
                alert("กรุณาเลือกเบอร์ที่ต้องการแก้ไขโดยการคลิ๊กช่องสี่เหลี่ยมหน้าเบอร์โทรศัพท์ที่ต้องการแก้ไข");
                return;
            }
        }
        //save2hiddenfld();
        if (!document.forms[the_form].elements['selectedpage']) {
            var p = 1;
        }
        else {
            var p = document.form1.selectedpage.value;
        }
    
    
        url = url+"?page="+p+"&id="+result;
        //alert(url);
        MM_openBrWindow(url ,'add','width=700,height=550');
        //document.forms[the_form].method = 'post';
        //document.forms[the_form].action = url;
        //document.forms[the_form].submit();
        //return true;
    }
    function delPhonebook(the_form, the_elements, url)
    {
        MM_openBrWindow('/bp3/bin/ClosePage' ,'add','width=700,height=550');

        if (!document.forms[the_form].elements[the_elements])
        {
            // No found checkbox in form
            alert("คุณไม่สามารถเลือก Phonebook เพื่อลบได้");
            return;
        }
        var elts   =  document.forms[the_form].elements[the_elements];
        var elts_cnt  = (typeof(elts.length) != 'undefined')? elts.length:0;
        var del_cnt = 0;
        var result = "";
        if (elts_cnt)
        {
            for (var i = 0; i < elts_cnt; i++) 
            {
                if (elts[i].checked)
                {
                    result = elts[i].value;
                    del_cnt++;
                    if (del_cnt > 1)
                    {
                        //alert("You must be select one contact to edit only");
                        //return false;
                    }
                }
            }
            if (del_cnt == 0)
            {
                //alert("You did not select contact to edit");
                alert("กรุณาเลือกเบอร์ที่ต้องการลบโดยการคลิ๊กช่องสี่เหลี่ยมหน้าเบอร์โทรศัพท์ที่ต้องการลบ");
                return;
            }
            //return true;
        }
        else
        {
            if (elts.checked) 
            {
                del_cnt++;
                result = elts.value;
                //return true;
            }
            else
            {
                alert("กรุณาเลือกเบอร์ที่ต้องการลบโดยการคลิ๊กช่องสี่เหลี่ยมหน้าเบอร์โทรศัพท์ที่ต้องการลบ");
                return;
            }
        }
        if (confirm('คุณยืนยันการลบข้อมูลใน Phonebook หรือไม่')) {
            //save2hiddenfld();
            if (!document.forms[the_form].elements['selectedpage']) {
                var p = 1;
            }
            else {
                var p = document.form1.selectedpage.value;
            }
            url = url+"?page="+p+"&command=delete";
            document.forms[the_form].method = 'post';
            document.forms[the_form].action = url;
            document.forms[the_form].submit();
        }
        return;
    }


    var max_send_sms = 5 ;
    var ROW_BASE = 1; // first number (for display)

    function getNumbCheckBox(the_form, the_elements) {
        if (!document.forms[the_form].elements[the_elements]) {
            return false;
        }
        var counter = 0 ;
        var elts   =  document.forms[the_form].elements[the_elements];
        var elts_cnt  = (typeof(elts.length) != 'undefined')? elts.length:0;
        if (elts_cnt) {
            for (var i = 0; i < elts_cnt; i++) {
                if (elts[i].checked) {
                    counter++ ;
                }
            }
        }  else {
            if (elts.checked)  {
                counter++ ;
            }
        }
        return counter ;
    }
    function deleteCurrentRow(obj)
    {
        //    if (hasLoaded) {
        var delRow = obj.parentNode.parentNode;
        var tbl = delRow.parentNode.parentNode;
        var rIndex = delRow.sectionRowIndex;
        var rowArray = new Array(delRow);
        deleteRows(rowArray);
        reorderRows(tbl, rIndex);
        //    }
    }
    function deleteRows(rowObjArray)
    {
        //if (hasLoaded) {
        for (var i=0; i<rowObjArray.length; i++) {
            var rIndex = rowObjArray[i].sectionRowIndex;
            rowObjArray[i].parentNode.deleteRow(rIndex);
        }
        //}
    }
    function reorderRows(tbl, startingIndex)
    {
        //if (hasLoaded) {
        if (tbl.tBodies[0].rows[startingIndex]) {
            var count = startingIndex + ROW_BASE;
            for (var i=startingIndex; i<tbl.tBodies[0].rows.length; i++) {            
                var column_1 = tbl.tBodies[0].rows[i].cells[1]  ;
                textNode_2 = document.createTextNode(i + 1);
                column_1.removeChild(column_1.childNodes(0)) ;
                column_1.appendChild(textNode_2)     ;
                count++;
                name2 = document.forms['form1'].elements['Pname'+(i+2)].value;
                numb2 = document.forms['form1'].elements['Pnumb'+(i+2)].value;
                document.forms['form1'].elements['Pname'+(i+1)].value =  name2;
                document.forms['form1'].elements['Pnumb'+(i+1)].value =  numb2;
                //alert(i);
            }
        }
        //}
    }
    function addRowToTable(tblName,column_1_innerHTML,column_2_innerHTML,column_3_innerHTML,column_4_innerHTML) {
        //addRowToTable('AddrBookList','column_1','column_2') ;
        var tbl = document.getElementById(tblName);
        var lastRow = tbl.rows.length;
        // check over row limit to created
        if(lastRow > max_send_sms) {
            alert("over your limit") ;
            return false ;
        }
        var iteration = lastRow;
        var row = tbl.insertRow(lastRow);
        row.bgColor =  "#dff1ff" ;
        row.setAttribute("backgroundColor", "#dff1ff") ;
        row.onmouseover = function() { row.bgColor =  "#FFCCCC" ;    }
        row.onmouseout = function() { row.bgColor =  "#dff1ff" ; }
        //#dff1ff
        // add column 1 // delete column

    
        var column_1 = row.insertCell(0);
        column_1.setAttribute("width", "11%") ;
        //column_1.setAttribute("bgcolor", "#dff1ff") ;
        var eleDelImg = document.createElement("img");
        eleDelImg.id = 'id_'+lastRow ;
        eleDelImg.setAttribute("src", "${RESOURCE}/tha/images/b_drop.png");
        eleDelImg.onclick = function() { deleteCurrentRow(this) ; }
        column_1.appendChild(eleDelImg);
        // add column 2 // row num
        var column_2 = row.insertCell(1);
        column_2.setAttribute("width", "9%") ;
        var textNode_2 = document.createTextNode(iteration+1);
        column_2.appendChild(textNode_2)

        var column_3 = row.insertCell(2);
        column_3.setAttribute("width", "19%") ;

        var replaceSPC = replaceSpecialChar(column_1_innerHTML);
        var textNode_3 = document.createTextNode(replaceSPC );

        column_3.appendChild(textNode_3);
        column_3.innerHTML='<div align="left" style="padding-left:5px; word-break: break-all;" width="20">'+column_1_innerHTML+'</div>';

        // select cell
        var column_4 = row.insertCell(3);
        column_4.setAttribute("width", "19%") ;
        var textNode_4 = document.createTextNode(column_2_innerHTML);
        column_4.appendChild(textNode_4);
        //Pooh
        var column_5 = row.insertCell(4);
        column_5.setAttribute("width", "20%") ;
        var textNode_5 = document.createTextNode(column_3_innerHTML);
        column_5.appendChild(textNode_5);
    
        var column_6 = row.insertCell(5);
        column_6.setAttribute("width", "22%") ;
        var textNode_6 = document.createTextNode(column_4_innerHTML);
        column_6.appendChild(textNode_6);
    
        document.forms['form1'].elements['Pname'+(lastRow+1)].value =  column_1_innerHTML ;
        document.forms['form1'].elements['Pnumb'+(lastRow+1)].value =  column_2_innerHTML ;
    }


    function addPhonebookToTable(tblName,column_1_innerHTML,column_2_innerHTML, decode) {
        var tbl = document.getElementById(tblName);
        var lastRow = tbl.rows.length;
        // check over row limit to created
        if(lastRow > max_send_sms) {
            alert("over your limit") ;
            return false ;
        }
        var iteration = lastRow;
        var row = tbl.insertRow(lastRow);
        row.bgColor =  "#dff1ff" ;
        row.setAttribute("backgroundColor", "#dff1ff") ;
        row.onmouseover = function() { row.bgColor =  "#FFCCCC" ; }
        row.onmouseout = function() { row.bgColor =  "#dff1ff" ; }
    
        var column_1 = row.insertCell(0);
        column_1.setAttribute("width", "11%") ;
        var eleDelImg = document.createElement("img");
        eleDelImg.id = 'id_'+lastRow ;
        eleDelImg.setAttribute("src", "${RESOURCE}/tha/images/b_drop.png");
        eleDelImg.onclick = function() {deleteCurrentRow(this) ;}
        column_1.appendChild(eleDelImg);

        var column_2 = row.insertCell(1);
        column_2.setAttribute("width", "11%") ;
        var textNode_2 = document.createTextNode(iteration+1);
        column_2.appendChild(textNode_2)

        var column_3 = row.insertCell(2);
        column_3.setAttribute("width", "44%") ;
        if (decode == 'decode') {
            //alert(column_1_innerHTML);
            var replaceSPC = _utf8_decode(base64decode(column_1_innerHTML));
            //alert(replaceSPC);
            replaceSPC  = replaceSpecialChar(replaceSPC );
            var textNode_3 = document.createTextNode(replaceSPC);
            column_3.appendChild(textNode_3 );
            column_3.innerHTML='<div align="left" style="padding-left:5px; word-break: break-all;" width="20">'+replaceSPC +'</div>';
        }
        else {
            var replaceSPC = column_1_innerHTML;
            var textNode_3 = document.createTextNode(replaceSPC );
            column_3.appendChild(textNode_3 );
            column_3.innerHTML='<div align="left" style="padding-left:5px; word-break: break-all;" width="20">'+replaceSPC +'</div>';
        }
    

        var column_4 = row.insertCell(3);
        column_4.setAttribute("width", "34%") ;
        var textNode_4 = document.createTextNode(column_2_innerHTML);
        column_4.appendChild(textNode_4);

        document.forms['form1'].elements['Pname'+(lastRow+1)].value =  replaceSPC;
        document.forms['form1'].elements['Pnumb'+(lastRow+1)].value =  column_2_innerHTML;
    }
        </script>
    </head>

    <body>
        <div id="header">
            <%@ include file="../head.jsp" %>
        </div>

        <div id="container">
            <div id="pathway"><a href="${pageContext.request.contextPath}/index.html" class="link2">บริการผ่านเว็บ</a> &gt; <a href="${pageContext.request.contextPath}/index.html?page=Welcome"  class="link2">ข้อมูลส่วนตัวและแพ็กเกจ</a> &gt; <a class="link2">ส่งข้อความ 50 SMS ผ่านเว็บฟรี</a></div>
            <div id="main">
                <%@ include file="../menu.jsp" %>
                <div id="content">
                    <div class="content-middle">

                        <!--เนื้อหาเริ่มที่นี่-->
                        <table width="100%" border="0">
                            <tr>
                                <td>
                                    <!-- เอา Content ใส่ ระหว่างนี้ -->

                                    <table width="650" border="0" cellspacing="0" cellpadding="0">

                                        <%@ include file="../control_panel.jsp" %>

                                        <tr>
                                            <td>


                                                <table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                    <tr>
                                                        <td width="2%"><img src="${RESOURCE}/tha/images/14_webservice_bullet01.gif" width="9" height="9" /></td>
                                                        <td width="98%" class="textnormal_bold"><img src="${RESOURCE}/tha/images/14_webservice_subtitle17n.gif" width="350" height="22" /></td>
                                                    </tr>
                                                    <tr>

                                                        <td>&nbsp;</td>
                                                        <td height="40" valign="bottom" class="textnormal"><table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                                <tr>
                                                                    <td width="2%" valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                                    <td width="98%"  class="textnormal">ในเครือข่ายดีแทค ฟรี!<span class="textnormalred_bold"> 50</span> ข้อความ เกินจากที่กำหนด คิดค่าบริการ <span class="textnormalred_bold">2</span> บาท ต่อข้อความ</td>

                                                                </tr>
                                                                <tr>
                                                                    <td valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                                    <td class="textnormal">นอกเครือข่ายดีแทค คิดค่าบริการ <span class="textnormalred_bold"> 2</span> บาทต่อข้อความ</td>
                                                                </tr>
                                                            </table></td>

                                                    </tr>
                                                    <tr>
                                                        <td>&nbsp;</td>
                                                        <td height="50" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr>
                                                                    <td width="14%" class="textnormal_bold">สำหรับเดือนนี้:</td>
                                                                    <td width="86%" class="textnormal">คุณส่งข้อความฟรีไปแล้วทั้งสิ้น <span class="textnormalred_bold">0</span> ข้อความ</td>

                                                                </tr>
                                                                <tr>
                                                                    <td>&nbsp;</td>
                                                                    <td class="textnormal">คุณสามารถส่งข้อความฟรีได้อีก <span class="textnormalred_bold">50</span> ข้อความ</td>
                                                                </tr>
                                                            </table></td>
                                                    </tr>

                                                </table></td>
                                        </tr>
                                        <tr>
                                            <td height="15" align="center"><br/>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                    <tr>
                                                        <td background="${RESOURCE}/tha/images/14_webservice_tabline.gif">&nbsp;</td>
                                                        <td width="1"><a href="${pageContext.request.contextPath}/DpromptSMSForm.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg01','','${RESOURCE}/tha/images/14_webservice_msgtab01_i.gif',1)"><img src="${RESOURCE}/tha/images/14_webservice_msgtab01.gif" name="msg01" width="140" height="42" border="0" /></a></td>
                                                        <td width="1"><a href="${pageContext.request.contextPath}/DpromptSMSForm.html?page=SMSPhoneBookList" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg02','','${RESOURCE}/tha/images/14_webservice_msgtab02_i.gif',1)"><img src="${RESOURCE}/tha/images/14_webservice_msgtab02_i.gif" name="msg02" width="140" height="42" border="0" /></a></td>

                                                        <td width="1"><a href="${pageContext.request.contextPath}/DpromptSMSForm.html?page=SMSSchedule" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg03','','${RESOURCE}/tha/images/14_webservice_msgtab03_i.gif',1)"><img src="${RESOURCE}/tha/images/14_webservice_msgtab03.gif" name="msg03" width="140" height="42" border="0" /></a></td>
                                                        <td width="1"><a href="${pageContext.request.contextPath}/DpromptSMSForm.html?page=SMSDrReport" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('msg04','','${RESOURCE}/tha/images/14_webservice_msgtab04_i.gif',1)"><img src="${RESOURCE}/tha/images/14_webservice_msgtab04.gif" name="msg04" width="140" height="42" border="0" /></a></td>
                                                        <td background="${RESOURCE}/tha/images/14_webservice_tabline.gif">&nbsp;</td>
                                                    </tr>
                                                </table>                                                        </td>
                                        </tr>
                                        <tr>
                                            <td height="15" align="center"><br/>
                                                <br/></td>

                                        </tr>
                                        <tr>
                                            <td height="15" align="left">
                                                <table width="95%" border="0" align="center" cellpadding="2" cellspacing="2">
                                                    <tr>
                                                        <td>
                                                            <table width="100%" border="0" cellspacing="3" cellpadding="0">
                                                                <tr>
                                                                    <td width="2%"><img src="${RESOURCE}/tha/images/14_webservice_bullet01.gif" width="9" height="9" /></td>
                                                                    <td width="98%" class="textnormalred_bold">ดูรายละเอียดทั้งหมดในสมุดโทรศัพท์</td>

                                                                </tr>
                                                            </table>                                                                    </td>
                                                    </tr>
                                                    <tr>
                                                        <td height="15" align="center">&nbsp;</td>
                                                    </tr>
                                                    <tr>
                                                        <td height="15" align="left">
                                                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

                                                                <tr>
                                                                    <td width="1"><img src="${RESOURCE}/tha/images/14_table_01.gif" width="10" height="10" /></td>
                                                                    <td background="${RESOURCE}/tha/images/14_table_05.gif"><img src="${RESOURCE}/tha/images/14_table_05.gif" width="10" height="10" /></td>
                                                                    <td width="1"><img src="${RESOURCE}/tha/images/14_table_02.gif" width="10" height="10" /></td>
                                                                </tr>
                                                                <tr>
                                                                    <td background="${RESOURCE}/tha/images/14_table_06.gif"><img src="${RESOURCE}/tha/images/14_table_06.gif" width="10" height="10" /></td>
                                                                    <td align="center" valign="top"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
                                                                            <tr>

                                                                                <td height="30" colspan="6" align="center" valign="middle" bgcolor="#FFFFFF"><table width="95%" border="0" cellspacing="3" cellpadding="0">
                                                                                        <tr>
                                                                                            <td width="28%" class="textnormal_bold">ค้นหาชื่อ</td>
                                                                                            <td width="46%"><input id="search" name="name" type="text" class="txt_search_c04" size="13" maxlength="10" autocomplete="off" /></td>
                                                                                            <td width="26%"><a href="javascript:void(0);" onclick="doSearch();"><img src="${RESOURCE}/tha/images/14_webservice_search.gif" width="58" height="23" /></a></td>
                                                                                        </tr>
                                                                                    </table>                                                                                </td>
                                                                            </tr>

                                                                            <tr>
                                                                                <td width="6%" height="30" align="center" valign="middle" bgcolor="#0ABBE0">&nbsp;</td>
                                                                                <td width="5%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold">No.</td>
                                                                                <td width="18%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold"><a href="javascript:void(0);" onclick="javascript:doSortDesc('N', '', '');" class="link2white">ชื่อเล่น <img src="${RESOURCE}/tha/images/sorting_up.gif" width="12" height="8" border="0" /></a></td>
                                                                                <td width="25%" align="left" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold">&nbsp;<a href="javascript:void(0);" onclick="javascript:doSortDesc('', 'N', '');" class="link2white">ชื่อจริง <img src="${RESOURCE}/tha/images/sorting_up.gif" width="12" height="8" border="0" /></a></td>
                                                                                <td width="25%" align="left" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold"><a href="javascript:void(0);" onclick="javascript:doSortDesc('', '', 'N');" class="link2white">&nbsp;นามสกุล <img src="${RESOURCE}/tha/images/sorting_up.gif" width="12" height="8" border="0" /></a></td>
                                                                                <td width="17%" align="center" valign="middle" bgcolor="#0ABBE0" class="textnormalwhite_bold">เบอร์โทร</td>

                                                                            </tr>

                                                                            <tr id="tr_1" onclick='if (!document.layers) {var cb=document.getElementById("checkPhoneBook_1"); cb.checked=!cb.checked}' bgcolor="">
                                                                                <td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                                                        <tr>
                                                                                            <td width="6%" align="center"><input type="checkbox" id="checkPhoneBook_1" name="PhonebookId[]" value="5107366331"  onclick='if (!document.layers) {this.checked=!this.checked}' /></td>
                                                                                            <td width="5%" align="center" valign="top" class="textnormal">1</td>
                                                                                            <td width="18%" align="center" valign="top" class="textnormal">โน้ต</td>
                                                                                            <td width="25%" align="justify" valign="top" class="textnormal">&nbsp;&nbsp;</td>

                                                                                            <td width="25%" align="justify" valign="top" class="textnormal">&nbsp;&nbsp;</td>
                                                                                            <td width="17%" align="center" valign="top" class="textnormal">0896902976</td>
                                                                                        </tr>
                                                                                    </table></td>
                                                                            </tr>

                                                                            <tr id="tr_2" onclick='if (!document.layers) {var cb=document.getElementById("checkPhoneBook_2"); cb.checked=!cb.checked}' bgcolor="#E0E0E0">
                                                                                <td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="0">

                                                                                        <tr>
                                                                                            <td width="6%" align="center"><input type="checkbox" id="checkPhoneBook_2" name="PhonebookId[]" value="5106621095"  onclick='if (!document.layers) {this.checked=!this.checked}' /></td>
                                                                                            <td width="5%" align="center" valign="top" class="textnormal">2</td>
                                                                                            <td width="18%" align="center" valign="top" class="textnormal">นก</td>
                                                                                            <td width="25%" align="justify" valign="top" class="textnormal">&nbsp;&nbsp;</td>
                                                                                            <td width="25%" align="justify" valign="top" class="textnormal">&nbsp;&nbsp;</td>
                                                                                            <td width="17%" align="center" valign="top" class="textnormal">0891377567</td>

                                                                                        </tr>
                                                                                    </table></td>
                                                                            </tr>

                                                                        </table></td>
                                                                    <td background="${RESOURCE}/tha/images/14_table_07.gif"><img src="${RESOURCE}/tha/images/14_table_07.gif" width="10" height="10" /></td>
                                                                </tr>

                                                                <tr>
                                                                    <td><img src="${RESOURCE}/tha/images/14_table_03.gif" width="10" height="10" /></td>
                                                                    <td background="${RESOURCE}/tha/images/14_table_08.gif"><img src="${RESOURCE}/tha/images/14_table_08.gif" width="10" height="10" /></td>
                                                                    <td><img src="${RESOURCE}/tha/images/14_table_04.gif" width="10" height="10" /></td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                    <tr>

                                                        <td align="center">
                                                            << back หน้า :  <a href="javascript:void(0);" onlick="javascript:changePage(1);" class='link2'><u>1</u></a> <a href="javascript:void(0);" onclick="javascript:changePage(2);" class='link2'>2</a> next >>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table width="100%" border="0" cellspacing="0" cellpadding="0">

                                                    <tr>
                                                        <td align="center" class="head"><p><br/></p>
                                                            <table width="40%" border="0" cellspacing="0" cellpadding="0">
                                                                <tr align="center">
                                                                    <td><a href="javascript:void(0);" onclick="javascript:wrapAddWindow();" class="textnormalpink_bold"><img src="${RESOURCE}/tha/images/14_webservice_add.gif" width="58" height="23" border="0" /></a></td>
                                                                    <td><a href="javascript:void(0);" onclick="javascript:wrapEditWindow();"><img src="${RESOURCE}/tha/images/14_webservice_edit.gif" width="58" height="23" border="0" /></a></td>
                                                                    <td><a href="javascript:void(0);" onclick="javascript:delPhonebook('form1','PhonebookId[]','SMSPhoneBookList');"><img src="${RESOURCE}/tha/images/14_webservice_delete.gif" width="58" height="23" border="0" /></a></td>
                                                                </tr>

                                                            </table>
                                                            <table width="100%" align="center" border="0">
                                                                <tr>
                                                                    <td align="left"><span class="textnormal"><br/>
                                                                            จำนวนรายชื่อที่บันทึกไว้</span>
                                                                        <font color="#FF0000" class="textnormalred_bold">18</font> <span class="textnormal">รายชื่อ</span></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left">&nbsp;</td>

                                                                </tr>
                                                                <tr>
                                                                    <td align="left"><font class="textnormalred_bold">หมายเหตุ:</font></td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="left"><span class="textnormal">สมุดโทรศัพท์สามารถเก็บชื่อได้รวม</span>
                                                                        <font color="#FF0000" class="textnormalred_bold">200</font> <span class="textnormal">ชื่อ</span></td>
                                                                </tr>

                                                            </table>
                                                            <br/></td>
                                                    </tr>
                                                </table>
                                                <span class="textnormal"><span class="head"><img src="${RESOURCE}/tha/images/14_webservice_remark.gif" width="95" height="33" /></span></span>
                                                <table width="95%" border="0" align="center" cellpadding="0" cellspacing="3">
                                                    <tr>
                                                        <td width="2%" valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                        <td width="98%" align="left" class="textnormal">ข้อความที่ถูกส่งออกจากระบบแล้วถือว่าส่งสำเร็จ </td>

                                                    </tr>
                                                    <tr>
                                                        <td valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                        <td align="left" class="textnormal">วิธีคิดค่าบริการ </td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="baseline">&nbsp;</td>
                                                        <td align="left" class="textnormal"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="3">



                                                                <tr>
                                                                    <td width="2%" valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                                    <td width="98%" align="left" class="textnormal">ส่งในเครือข่ายดีแทค ระบบจะคำนวณหักจากจำนวนข้อความฟรีในเดือนที่ทำรายการ และจะไม่คำนวณคืน กรณียกเลิกการส่ง SMS ที่ตั้งเวลาไว้</td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                                    <td align="left" class="textnormal">ส่งนอกเครือข่าย หรือในเครือข่ายที่เกินจากที่กำหนดให้ฟรี ระบบจะคิดค่าบริการทันทีที่ส่ง SMS ออกจากระบบ </td>
                                                                </tr>


                                                            </table></td>
                                                    </tr>
                                                    <tr>
                                                        <td valign="baseline"><img src="${RESOURCE}/tha/images/bullet_grey.gif" width="9" height="9" /></td>
                                                        <td align="left" class="textnormal">บริการนี้มีไว้สำหรับผู้ใช้บริการเฉพาะส่วนบุคคล มิใช่เพื่อการใช้ประโยชน์ในเชิงพาณิชย์ของบุคคลใดบุคคลหนึ่ง หากบริษัทฯ พบว่ามีผู้ใดกระทำการละเมิดต่อสิทธิของบริษัทฯ อันขัดต่อข้อตกลงที่ระบุไว้ในที่นี้ บริษัทฯ จะดำเนินการ ทางกฎหมายกับบุคคลนั้นทันที</td>
                                                    </tr>
                                                    <tr>
                                                        <td height="10" colspan="2" valign="baseline"><img src="${RESOURCE}/tha/imagesimages/clear.gif" width="1" height="1" /></td>

                                                    </tr>
                                                    <tr>
                                                        <td colspan="2" valign="baseline"><a href="${pageContext.request.contextPath}/index.html?page=GuestTermOfService" class="textnormal_blue">เงื่อนไขการใช้บริการ</a><span class="textnormalred">|</span><a href="javascript:void(0);" class="textnormalred" onClick="window.open('http://www.happy.co.th/eservice/sms_rules.php','PopUp','');">เงื่อนไขบริการส่ง SMS ผ่านเว็บ</a></td>
                                                    </tr>
                                                </table>
                                                <p>&nbsp;</p>
                                                <table>

                                                    <%@ include file="../tail.jsp" %>
                                                </table>
                                                <p>&nbsp;</p></td>
                                        </tr>


                                    </table>



                                    <!-- เอา Content ใส่ ระหว่างนี้ -->                            </td>

                            </tr>
                        </table>
                        <!--เนื้อหาสิ้นสุดที่นี่-->

                    </div>
                    <div class="content-bottom"></div>
                </div>
            </div>
        </div>
        <div id="footer">
            <img src="${RESOURCE}/tha/images/copy_right.jpg" />
            <a href="http://www.dtac.co.th" target="_blank"><img src="${RESOURCE}/tha/images/dtact_logo.jpg" border="0" /></a>
            <a href="http://www.happyvirus.com" target="_blank"><img src="${RESOURCE}/tha/images/virus_icon.jpg" border="0" /></a>
        </div>
    </body>
</html>
